Skip to content
This repository was archived by the owner on Feb 17, 2020. It is now read-only.

Update Step 4 - Add app_name attribute #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mooja
Copy link

@mooja mooja commented Sep 20, 2014

Latest django-polls from pip uses the 'polls' namespace to display the poll app.
From polls/templates/index.html:

    <li><a href="{% url 'polls:detail' poll.id %}">{{ poll.question }}</a></li>

Unless you set the 'app_name' to 'polls', the example in the tutorial won't work.

Latest django-polls from pip uses the 'polls' namespace to display the poll app.
> 	<li><a href="{% url 'polls:detail' poll.id %}">{{ poll.question }}</a></li>

Unless you set the 'app_name' to 'polls', the example in the tutorial won't work.
@maoaiz
Copy link

maoaiz commented Oct 3, 2014

I tried to do that but still warning Django NoReverseMatch, u'polls' is not a registered namespace

I could not solve this. :/

@julienp
Copy link

julienp commented Oct 9, 2014

If you add the app_name after you already added the plugin to a page, try deleting the page and recreating it, for me that did the trick. If an app_name is specified, you can set the instance name of the app when adding it, if no app_name is set, this option doesn't show up. I assume this is the origin of the problem

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants